<template>
    <div>
        <h1>子应用</h1>
        <router-view></router-view>
    </div>
</template>

<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { qiankunWindow } from "vite-plugin-qiankun/dist/helper"
import { start } from 'qiankun'

onMounted(() => {
    if (!qiankunWindow.__POWERED_BY_QIANKUN__) {
        qiankunWindow.__POWERED_BY_QIANKUN__ = true
        console.log('子应用已加载')
        start()
    }
})
</script>

<style lang="less" scoped>

</style>